<template>
  <div>
    <h1>当前计数为： {{ count }}</h1>
    <h1>当前计数为double： {{ doubleCount }}</h1>
    <button @click="increment">+1</button>
  </div>
</template>

<script>
export default {
  name: 'App',
  components: {},
  data() {
    return {
      count: 100
    }
  },
  methods: {
    increment() {
      this.count++
    }
  },
  computed: {
    doubleCount() {
      return this.count * 2
    }
  },
  mounted() {}
}
</script>

<style lang="scss" scoped></style>
